home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6706 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: news.sprintlink.net!rockyd!cmcl2!schonberg!dewar
  2. From: dewar@cs.nyu.edu (Robert Dewar)
  3. Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c
  4. Subject: Re: C++ vs Ada for large project
  5. Date: 11 Feb 1996 10:17:07 -0500
  6. Organization: Courant Institute of Mathematical Sciences
  7. Message-ID: <dewar.824051554@schonberg>
  8. References: <w4wx5wc1a2.fsf@cln46ac> <4ffjrq$i8k@qualcomm.com> <4fgn1t$ku8@nntpa.cb.att.com> <4fjo8l$251@ux1.lmu.edu>
  9. NNTP-Posting-Host: schonberg.cs.nyu.edu
  10. X-Newsreader: NN version 6.5.0 (NOV)
  11.  
  12. Ray asks
  13.  
  14. "I do wonder, though, to what extent the "newer" features of C++ (strings,
  15. namespaces, etc.) will be used in practice.  There are a lot of
  16. programmers who get by with header files, char*'s and so on."
  17.  
  18. Yes, indeed, an important question. Often the trouble with languages is not
  19. the language itself, but the way in which it was used.
  20.  
  21. A few years ago, I was teaching Ada 83 and C in a graduate programming
  22. languages course. We were looking at these languages at a fairly rigorous
  23. level, and also discussing the issues of large scale solftware engineering
  24. using these languages.
  25.  
  26. I taught Ada first, and described how packages were used as a structuring
  27. mechanism. Then I looked at headers in C, and noted that they can fulfill
  28. much of the same functions, but that additional tools are needed to automate
  29. this approach if it is to be reliable, particularly for example for dealing
  30. with global variables in this context (which must be defined only once 
  31. despite multiple inclusion of the related headers). I described the tool
  32. we had generated to handle headers in he implementation of Ada/Ed.
  33.  
  34. I had a student from Bell Labs in the class who was involved in the
  35. development of large scale switching systems in C. He was a useful
  36. soure of information on the real world of large scale high realiability
  37. C development, so, quite innocently, I asked him what kind of tools
  38. were used at Bell for header maintenance and consistency checking.
  39.  
  40. His amazing answer: NONE! He said that things were done by hand,, and it
  41. wasn't too bad since they did not have "that many" variables in headers,
  42. and they did not "often" change functions specs.
  43.  
  44. :-)
  45.  
  46.